/*
 * @Author: your name
 * @Date: 2022-01-14 15:15:14
 * @LastEditTime: 2022-01-17 17:55:05
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue-element-admin\src\api\user.js
 */
import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/crmApi/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/crmApi/checkRole',
    method: 'post',
    // params: { token }
  })
}

export function logout() {
  return request({
    url: '/crmApi/loginOut',
    method: 'post'
  })
}
